#include "Timer2.h"

void Timer2_Init(void)		//1毫秒@12.000MHz
{
	AUXR |= 0x04;		//定时器时钟1T模式
	T2L = 0x20;		//设置定时初始值
	T2H = 0xD1;		//设置定时初始值
	AUXR |= 0x10;		//定时器2开始计时
	IE2  |= 0x04;	//打开定时器2的中断
}



/*

//定时器2 中断服务函数模板
//12T 16位自动重载
void Timer2_Routine() interrupt 12
{
    static unsigned int T2Count0;	
	T2Count0++;	
	if(T2Count0 >= 1000)
	{
		Number++;
		T2Count0 = 0;
	}
}

*/
